<?php

/*

Trivia (trivia.php)

*/

$page_title = "Trivia";
$rank_check = 1;
include "header.inc.php";

print "$openHTML";

$find_games = mysql_query("SELECT * FROM trivia_games WHERE game = '$game'");

while ($get_games = mysql_fetch_array($find_games))
{
	echo "<p><a href=trivia_play.php?game=$game&trivia_game=$get_games[id]><b>$get_games[gamename]</b></a>: $get_games[gamedesc]<br><b>Price per question</b>: $get_games[price] $pointsVar<br><b>Prize per question</b>: $get_games[prize] $pointsVar</p>";
	$x = 1;
}

if (!$x)
{
	echo "<p>This game has not been set up yet. Please be patient.</p>";
	if ($rank == 7)
	{
		echo "<p>Click <a href=admin/admin_add_trivia_game.php?game=$game>here</a> to set up trivia.</p>";
	}
}

print "$closeHTML";

?>